﻿using Dapper.Contrib.Extensions;
using Microsoft.AspNetCore.Http;
using SXFramWork.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace SXFramWork.Model
{
    /// <summary>
    /// 用户更新模型
    /// </summary>
    public class UserUpdateModel
    {
        public string Id { get; set; }
        public string UserName { get; set; }
        public string TrueName { get; set; }
        public string PassWord { get; set; }
        public string Phone { get; set; }
        public int Status { get; set; }
        public int Sex { get; set; }

        public string Adress { get; set; }

        public string HeadPic { get; set; }

        public string Remarks { get; set; }

        public string OrganizeId { get; set; }

        public string OrganizeName { get; set; }
        public string Email { get; set; }
        public DateTime? UpLoginDate { get; set; }
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 绑定角色列表
        /// </summary>
        [Required(ErrorMessage = "请选择角色")]
        public List<string> Roles { get; set; }

    }

    public class UpdateModel_Basic
    {
        public IFormFile File { get; set; }

        public string TrueName { get; set; }

        public string Remarks { get; set; }
    }
}
